/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session05;

import java.util.ArrayList;
import java.util.List;
import session04.Student;

/**
 *
 * @author macbookpro
 */
public class MethodGeneric {

    public static <T> void showInfo(T t) {
        System.out.println(t);
    }

    public static void main(String[] args) {
        showInfo(new Student("R00001", "abc"));

        int a[] = {1, 2, 3, 4};
        showInfo(a);

        List l = new ArrayList();
        l.add(1);
        l.add(2);
        l.add(3);
        l.add(4);

        showInfo(l);
    }
}
